package org.tvolkov.mycompany

import grails.converters.JSON;

class CompanyController {
	
	def companyService
	
	def list = {
		render companyService.getCompanyList(params) as JSON;
	}
	
	def add = {
		render companyService.addNewCompany(params) as JSON;
	}
	
	def remove = {
		render companyService.removeCompany(params) as JSON;
	}
	
	def details = {
		render companyService.getCompanyDetails(params) as JSON;
	}
	
	def edit = {
		render companyService.editCompany(params) as JSON;
	}
}
